@import './_var.scss';
@import './_mixin.scss';
// 表单集
fieldset {
  padding: 0;
  margin: 0;
  legend {
    width: 100%;
    padding: 10px 0;
    margin-bottom: 20px;
    font-size: 16px;
    color: $color-dark;
    border-bottom: 1px solid $border-color-dark;
  }
  &[disabled] .form-control {
    background: $bg-disabled;
    color: $color-disabled;
    cursor: not-allowed;
  }
}
// 输入框样式
.form-control, textarea {
  display: block;
  width: 100%;
  min-height: 30px;
  padding: 0 10px;
  line-height: 1.42857143;
  // background-color: #fafafa;
  border: 1px solid #d7d7d7;
  // border-radius: 4px;
  transition: all .2s;
  &:focus {
    border-color: $border-color-focus;
  }
  &[disabled] {
    background: $bg-disabled;
    color: $color-disabled;
    cursor: not-allowed;
  }
}
// 文本域
textarea {
  padding: 10px 12px;
  height: 70px;
}
// 水平输入框集
.form-horizontal {
  .control-label {
    display: inline-block;
    margin-top: 5px;
    margin-bottom: 0;
    text-align: right;
  }
  .form-group {
    margin-right: -15px;
    margin-left: -15px;
  }
}
// 一行输入框集
.form-inline {
  .form-group, .form-control, .control-label, .btn-group {
    display: inline-block;
  }
  .form-group {
    margin-right: 20px;
    &:last-child {
      margin-right: 0;
    }
  }
  .control-label {
    margin-bottom: 0;
  }
}
// 输入框组
.form-group {
  @include clearfix();
  position: relative; 
  margin-bottom: 15px;
}
// label提示文字
.control-label {
  display: block;
  margin-bottom: 8px;
}